package com.aaa.pay.service;

import com.aaa.pay.dao.PayDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * fileName:PayServiceImpl
 * description:
 * author:lk
 * createTime:2020/3/20 10:45
 * version:1.0.0
 */
@Service
public class PayServiceImpl implements PayService {

    @Autowired
    private PayDao payDao;

    /**
     * 根据member充值余额
     */
    @Override
    public int payBymemberId(Map map) {
        return payDao.payBymemberId(map);
    }

    /**
     * 向用户的消费记录中添加消费信息
     * @param map
     * @return
     */
    @Override
    public int expenditureLog(Map map) {
        return 0;
    }
}
